package com.woniuxy.feign;

import com.woniuxy.dto.MyDto;
import com.woniuxy.pojo.PreOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("order-service")//微服务名字
public interface FeignOrder {

    @PostMapping(value="/createorder")
    public Map order(Map map);

}
